package com.rem.reflect;

import java.io.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Scanner;
import java.util.logging.FileHandler;

/**
 * @author remembrance
 * @version 1.0
 * @date 2021/11/9 16:41
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException, FileNotFoundException {
//        Class<?> clazz = Class.forName("com.rem.reflect.TestReflect");
//        Constructor<?> constructor = clazz.getConstructor();
//        Object obj = constructor.newInstance();
//        Scanner sc = new Scanner(System.in);
//        String next = sc.next();
//        String methodName = "hello";
//        Method method = clazz.getMethod(next);
//        method.invoke(obj);

    }
}
